package com.flyco.modules.sms.vo;

import java.util.List;

import com.flyco.modules.sms.entity.SmsAddbuyInfo;
import com.flyco.modules.sms.entity.SmsAddbuyCondition;
import com.flyco.modules.sms.entity.SmsAddbuyBenefit;
import lombok.Data;
import com.flyco.poi.excel.annotation.Excel;
import com.flyco.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 加价购
 * @Author: flyco
 * @Date: 2020-04-08
 * @Version: V1.0
 */
@Data
public class SmsAddbuyInfoPage {

    /**
     * id
     */
    private Long id;
    /**
     * 名称
     */
    @Excel(name = "名称", width = 15)
    private String name;

    /**
     * 活动属性：1:加价购  2:买赠
     */
    @Excel(name = "活动属性：1:加价购  2:买赠", width = 15)
    private Integer type;
    
    /**
     * 状态：0-未启用 1-已启用
     */
    @Excel(name = "状态：0-未启用 1-已启用", width = 15)
    private Integer status;
    /**
     * 类型：product->商品级；order->订单级；
     */
    @Excel(name = "类型：product->商品级；order->订单级；", width = 15)
    private String sourceType;
    /**
     * 是否查看价格商品：0-未启用 1-已启用
     */
    @Excel(name = "是否查看商品：0-未启用 1-已启用", width = 15)
    private Integer conditionFlag;
    /**
     * 开始时间
     */
    @Excel(name = "开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date startTime;
    /**
     * 结束时间
     */
    @Excel(name = "结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date endTime;
    /**
     * 订单级时，满多少金额可以加价购
     */
    @Excel(name = "订单级时，满多少金额可以加价购", width = 15)
    private java.math.BigDecimal amount;
    /**
     * 创建人
     */
    @Excel(name = "创建人", width = 15)
    private String createBy;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date createTime;
    /**
     * 更新人
     */
    @Excel(name = "更新人", width = 15)
    private String updateBy;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date updateTime;

    @ExcelCollection(name = "加价购条件")
    private List<SmsAddbuyCondition> smsAddbuyConditionList;
    @ExcelCollection(name = "加价购商品")
    private List<SmsAddbuyBenefit> smsAddbuyBenefitList;

}
